<?php

class TestController extends BaseController {

    public function getStudents()
    {
        $test_students = DB::table('test_students')->get();
        foreach ($test_students as $test_student) {
            User::where('id', $test_student->id)
                ->update([
                    'studno' => $test_student->studno,
                    'name' => $test_student->name,
                    'real_name' => $test_student->name,
                    'major' => $test_student->major,
                    'school' => '华南师范大学',
                    'city' => '广州',
                    'introduction' => '华南师范大学 ' . $test_student->major . ' ' . $test_student->name,
                ]);
        }
    }
}

